package org.giovanolli.mumi.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * The Class Title.
 */
@Entity
@Table(name = "title")
public class Title extends IdentificableEntity {

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 397786741862487916L;

	/** The name. */
	@Column(name = "name", unique = true)
	private String name;

	/**
	 * Gets the name.
	 * 
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * Sets the name.
	 * 
	 * @param name
	 *            the new name
	 */
	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "Title [name=" + name + ", toString()=" + super.toString() + "]";
	}

}
